package cn.bdqn.service;

import java.util.List;

import cn.bdqn.pojo.Dept;



public interface Deptservice {
	  public List<Dept> getDepts();
	  //根据部门编号查询
	  public Dept getDept(int deptno);
	  public int getCounts();
	  public List<Dept> getPageList(int pageIndex,int pageSize);
	  //通过部门编号删除
	  public boolean delete(int deptno);
	  //增加部门信息
	  public boolean add(int deptno,String dname,String loc);
	  //更新部门信息
	  public boolean update(Dept dept);
}
